<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { getToken } from './util/auth'

export default {
  name: 'App',
  created () {
    if (!getToken()) {
      this.$router.replace('/login')
    }
  }
}
</script>

<style lang="scss">
  @import "styles/common";
  @import "styles/public";

  #app {
    width: 100%;
    height: 100%;
  }
</style>
